Lender Price API
Locking a Loan with LOS / 7. Request Lock / 7.3 Add Request Lock Event
In This Topic
    7.3 Add Request Lock Event
    In This Topic

    To make a lock request, add a lock event using the addLockEvent call. This section covers the simplest case of an addLockEvent call.

    For the following more complex event requests, refer to their relevant pages:

    Path

    /rest/v1/lp-ppe-api/price-quote/addLockEvent

    Headers

    secret

    {{token}}

    companyid

    {{companyId}}

    Path Parameters

    There are no path parameters

    Body

    Pass the following IDs, along with a scenario lock, any exception or extension data if applicable, the date, and a comment:

    Copy Code
    {
        lockId: ObjectId;
        lockStatusId: ObjectId;
        priceQuoteId: ObjectId;
        lockEventExceptionInfo: LockEventExceptionInfo;
        lockEventExtensionInfo: LockEventExtensionInfo;
        scenario: ScenarioLock;
        lockDateUpdate: Date;
        lockEventComment: String;
    }

     Example Request

    Copy Code
    curl --location -g --request POST '{{protocol}}{{domain}}/rest/v1/lock/addLockEvent' \
    --header 'secret: {{token}}' \
    --header 'companyid: {{companyId}}' \
    --data-raw '{
        "lockId": "{{lockId}}",
        "lockStatusId": "{{lockStatusId}}",
        "priceQuoteId": "{{priceQuoteId}}",
        "lockEventExceptionInfo": null,
        "lockEventExtensionInfo": null
    }'

    Response

     The response returns the lock data and any modification data.